package com.liumuxian.video.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "tb_advertising")
public class Advertising implements Serializable{
    @Id
    @Column(name = "id",length = 20)
    private String id;
    @Column(name = "title")
    private String title;//广告标题
    @Column(name = "content")
    private String content;//广告内容
    @Column(name = "imagesrc",length = 100)
    private String imagesrc;//广告图片
    @Column(name = "url",length = 100)
    private String url;//广告地址
    @Column(name = "weight",length = 2)
    private Integer weight;//重要性顺序
    @Column(name = "state",length = 1)
    private Integer state;//广告状态
    @Column(name = "creatdata")
    private Date creatdata;//创建时间
    @Column(name = "updatedate")
    private Date updatedate;//修改时间

}
